package qf.module.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import qf.common.core.web.vo.AjaxResult;

@RestController
@RequestMapping("nacos/api")
@RefreshScope // 解决nacos修改配置不实时生效问题
public class LuckyController {

    @Value("${qf.test}")
    public String name;

    @RequestMapping("/v1/test")
    public AjaxResult LuckyTest() {
        return AjaxResult.success();
    }
}
